package com.chaos.system.api.data;

import com.chaos.framework.model.data.DATA;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)
@ApiModel(value="TOrderData", description="订单表")
public class TOrderData extends DATA{


    @ApiModelProperty(value = "用户id")
    private Long userId;


    @ApiModelProperty(value = "订单状态 1: 未支付 2:已支付")
    private Integer status;


    @ApiModelProperty(value = "总金额")
    private BigDecimal totalAmount;


    @ApiModelProperty(value = "实付金额")
    private BigDecimal payAmount;


    @ApiModelProperty(value = "手机号")
    private String phone;


    @ApiModelProperty(value = "订单来源：1，微信小程序；2，支付宝小程序；3，高德小程序 ")
    private Integer channel;


    @ApiModelProperty(value = "支付方式：1，支付宝；2，微信；3，余额账户；")
    private Integer payType;


    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;


    @ApiModelProperty(value = "备注")
    private String remark;


}
